/**
 * user.js 处理具体的业务逻辑（与数据库相关的业务逻辑处理都在这里完成）
 * @author Box()
 */

const express = require('express');
const router  = express.Router();
const actions = require('./user/index')

// 处理GET请求
router.get('/', (req, res) => {
  res.send({
    'username': 'Jack Ma',
    'sex': 'M',
    'address': '杭州',
    'methods': 'GET'
  });
});

// 处理POST请求
router.post('/', (req, res) => {
  res.send({
    username: "Pony Ma",
    sex: "M",
    address: "深圳",
    methods: "POST"
  });
});

router.use('/actions',actions);


module.exports = router;